<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
	<title>notes</title>
	<style type="text/css">
	  table
	  {
	  border-collapse: collapse;
	  }
	  table, tr, th, td
	  {
	  border: 1px solid black;
	  padding-left: 8px;
	  padding-right: 8px;
	  }
	  th, td
	  {
	  min-width: 2em;
	  }
	  pre
	  {
	  border-style: solid
	  }
	  .comment
	  {
	  color: green;
	  }
	</style>
	<link rel="stylesheet" title="plain" type="text/css" href="plain.css" />
	<link rel="alternate stylesheet" title="colour" type="text/css" href="colour.css"/>
</head>
<body>
	<h2>Notes</h2>
	<p>Plan for this class:<ol>
		<li><h3>Review of functions and pointers:</h3><ul>
		    <li>recap of Friday:<ul>
			<li>object oriented programming</li>
			<li>thinking in terms of interacting objects</li>
			<li>tell don't ask<ul>
			    <li>clarification: when it's okay to ask</li>
			</ul></lI>
			<li>additional principle:<ul>
			    <li>Law of Demeter</li>
			</ul></li>
		    </ul></li>
		</ul></li>
		<li><h3>Setting up SDL:</h3><ul>
		    <li>downloading from <a href="http://www.libsdl.org">www.libsdl.org</a></li>
		    <li>for Windows programming you want: SDL-devel-1.2.15-VC.zip</a>
		    <li>installing, unzip to somewhere suitable</li>
		    <li>set up Visual Studio:<ul>
			<li>set up include directory</li>
			<li>set up library directory</li>
			<li>adding libraries to project:<ul>
			    <li>SDLmain.lib</li>
			    <li>SDL.lib</li>
			    <li>opengl32.lib</li>
			</ul></li>
			<li>fix warning msvcrt.lib (debug only)</li>
			<li>add lib directory to path</li>
			<li>create a Win32 empty project</li>
			<li>create a blank Window</li>
		    </ul></li>
		</ul></li>
		<li><h3>Pong program:</h3><ul>
			<li>engine code<ul>
				<li>console output</li>
				<li>SDL video set up</li>
				<li>load / delete bitmap</li>
				<li>start render</li>
				<li>render bitmap</li>
				<li>end render</li>
			</ul></li>
			<li>main object simulation loop</li>
			<li>table object</li>
			<li>ball object</li>
		</ul></li>
	  </ol>
	</p>
</body>
</html>
